#!/usr/bin/env node

const argv = process.argv[2],
      log = console.log,
      err = console.err;

if(typeof(argv) === 'undefined'){
  err('缺少命令行参数');
  process.exit(1);
}

if(isNaN(Number(argv))){
  err('命令行参数不是合法数字');
  process.exit(2);
}

log('退出码:',argv);
process.exit(argv);
